﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/cdWip/cdWip?id=${c1?.id}"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="cdWip"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>客户订单：</label>
            <input name='CUSTOMER_ORDER' value="${CUSTOMER_ORDER}"/>
            <label>客户型号：</label>
            <input name='RESERVED21' value="${RESERVED21}"/>
            <br/>
            <label>封装形式：</label>
            <input name='RESERVED1' value="${RESERVED1}"/>
            <label>客户批号：</label>
            <input name='SUBSTRATE_ID1' value="${SUBSTRATE_ID1}"/>

            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/cdWip/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;

        </div>
    </form>
</div>
<g:if test="${cdWip.size > 0}">
    <div class="bjui-pageContent">

        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="40">NO.</th>
                <th width="150">订单号</th>
                <th width="80">工单类型</th>
                <th width="110">芯片型号</th>
                <th width="150">产品型号</th>
                <th width="110">客户产品型号</th>
                <th width="80">封装形式</th>
                <th width="100">客户批号</th>
                <th width="80">周记</th>
                <th width="80">订单数量</th>
                <th width="80">DB实装数</th>
                <th width="150">投料日期</th>
                <th width="150">交期</th>
                <th width="80">未下线</th>
                <th width="80">划片</th>
                <th width="80">装片</th>
                <th width="80">键合</th>
                <th width="80">塑封</th>
                <th width="80">电镀</th>
                <th width="80">切筋&成型</th>
                <th width="130">成品测试&编带&打标</th>
                <th width="80">外观全检</th>
                <th width="80">包装</th>
              %{--  <th width="80">已包装</th>--}%
             %{--   <th width="80">待入库</th>--}%
                <th width="80">FIN</th>
                <th width="80">不良品</th>
                <th width="80">WIP总计</th>
                <th width="80">已入库</th>

            </tr>
            </thead>
            <tbody>
            <g:each in="${cdWip}" status="i" var="tableInstance">
                    <td width="60">${i + 1}</td>
                    <td >
                        <a href="${request.getContextPath()}/wipComponentunit/wipComponentunit
           " data-toggle="navtab" data-id="dialog-normal"
                           data-options="{id:'wipComponentunit', title:'库存芯片盘点'}">
                        ${tableInstance.CUSTOMER_ORDER}</a></td>
                <td width="150">${tableInstance.LOT_TYPE}</td>
                    <td width="150">${tableInstance.CUSTOMER_PART_ID}</td>
                <td>${tableInstance.PART_NAME}</td>
                    <td width="80">${tableInstance.RESERVED21}</td>
                    <td width="80">${tableInstance.RESERVED1}</td>
                    <td width="100">${tableInstance.SUBSTRATE_ID1}</td>
                    <td width="80">${tableInstance.Reserved4}</td>
                    <td width="80">${tableInstance.ORDER_QTY}</td>
                   <td width="80">${tableInstance.DBSZS}</td>
                    <td width="100">${tableInstance.START_TIME}</td>
                    <td width="100">${tableInstance.ORDER_DATE}</td>
                    <td width="80">${tableInstance.XPJ}</td>
                    <td width="80">${tableInstance.A10}</td>
                    <td width="110">${tableInstance.A20}</td>
                    <td width="80">${tableInstance.A30}</td>
                    <td width="110">${tableInstance.A40}</td>
                    <td width="80">${tableInstance.A50}</td>
                    <td width="110">${tableInstance.A60}</td>
                    <td width="150">${tableInstance.T10}</td>
                    <td width="150">${tableInstance.T20}</td>
                    <td width="150">${tableInstance.T30}</td>
                 %{--   <td width="150">${tableInstance.YBZ}</td>
                    <td width="150">${tableInstance.DRK}</td>--}%
                    <td width="150">${tableInstance.FIN}</td>
                    <td width="150">${tableInstance.NG_NUMBER}</td>
                    <td width="150">${tableInstance.WIPSUM}</td>
                    <td width="150">${tableInstance.YRK}</td>



                </tr>
            </g:each>

            </tbody>
        </table>

    </div>
</g:if>

<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format: 'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView: 1,
            minView: 1,
            pickerPosition: "bottom-left",
            language: 'zh-CN',
            startDate: '2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>